package com.hzlh.controller.pc;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzlh.model.TFinancingHistory;
import com.hzlh.model.TPcCompanyBase;
import com.hzlh.service.TPcCompanyBaseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (TPcCompanyBase)表控制层
 *
 * @author makejava
 * @since 2021-06-10 09:48:15
 */
@RestController
@RequestMapping("/tPcCompanyBase")
public class TPcCompanyBaseController {
    /**
     * 服务对象
     */
    @Resource
    private TPcCompanyBaseService tPcCompanyBaseService;

    /**
     * 查询企业名称列表
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @GetMapping("/getList")
    public PageInfo getList(@RequestParam(value = "pageIndex", defaultValue = "1", required = false) Integer pageIndex,
                            @RequestParam(value = "pageSize", defaultValue = "10", required = false) Integer pageSize) {
        PageHelper.startPage(pageIndex, pageSize);
        List<TPcCompanyBase> list = tPcCompanyBaseService.selectList(null);
        return new PageInfo<>(list);
    }
}
